" 于设置 Vim 中的 t_ut 选项。t_ut 选项是一个特殊的功能，用于在终端上清除屏幕。具体来说，t_ut 代表的是终端的“清除到末尾”（clear to end of term）的字符串。
" 当你将 &t_ut 设置为空字符串时，即 let &t_ut=''，Vim 将不会使用这个清除屏幕的字符串。这通常是为了避免某些终端或环境下的屏幕清除行为，或者是为了更好地兼容不同的终端设置。
 let &t_ut=''
 let g:airline_theme = 'default'  " 默认主题
 " 或者选择其他主题，例如：
 let g:airline_theme = 'badwolf'
 let g:airline_theme = 'molokai'
 let g:airline_theme = 'solarized'
 "通过 g:airline_section_<section> 变量来自定义状态栏
 let g:airline#extensions#tabline#enabled = 1
 let g:airline#extensions#tabline#left_sep = ' '
 let g:airline#extensions#tabline#left_alt_sep = '|'
 let g:airline#extensions#tabline#formatter = 'default'
 " let g:airline#extensions#fugitive#enabled = 0 " 手动关闭集成
" ALE 配置
 let  g:ale_sign_error = '✘'
 let  g:ale_sign_warning = '!'

" 显示错误栏
let  g:airline#extensions#ale#enabled = 1

" 间隔时间
let  g:ale_set_timeout = 2

"默认打开Taglist
let Tlist_Auto_Open=1
""""""""""""""""""""""""""""""
" Tag list (ctags)
""""""""""""""""""""""""""""""""
let Tlist_Ctags_Cmd = '/usr/bin/ctags'
let Tlist_Show_One_File = 1 "不同时显示多个文件的tag，只显示当前文件的
let Tlist_Exit_OnlyWindow = 1 "如果taglist窗口是最后一个窗口，则退出vim
let Tlist_Use_Right_Window = 1 "在右侧窗口中显示taglist窗口
" minibufexpl插件的一般设置
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1

let g:signature_enabled = 1  " 启用插件
let g:signature_column_sign = "❯"  " 设置行标记符号为 "❯"

" 设置 Tagbar 使用的 ctags 可执行文件路径
let g:tagbar_ctags_bin = '/usr/bin/ctags'

" 设置 Tagbar 窗口的宽度
let g:tagbar_width = 35

" 设置 Tagbar 窗口显示在右侧
let g:tagbar_right = 1

" 设置 Tagbar 的图标
let g:tagbar_iconchars = ['▶', '▼']

" 不显示行号
let g:tagbar_show_linenumbers = 0

" 不显示顶部帮助信息
let g:tagbar_compact = 1

" 设置 UltiSnips 的快捷键
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"

" 设置 <leader> 键为逗号
let mapleader = ","

" YouCompleteMe 配置
let g:ycm_complete_in_comments = 1
let g:ycm_complete_in_strings = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_auto_hover = ''
let g:ycm_key_invoke_completion = '<C-Z>'

" 快捷键设置
let g:ycm_key_list_select_completion = ['<c-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<c-p>', '<Up>']